﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IntelligentCMS
{
    public partial class AdminLinks : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (Session["UserID"] == null || Session["Username"] == null)
            {
                Response.Redirect("login.aspx");
            }

            userid = (long)Session["UserID"];
            username = (string)Session["Username"];

            Label_Username.Text = "Welcome " + username + ":";

        }

        public long UserID
        {
            get
            {
                return userid;
            }



        }

        public string Username
        {
            get
            {
                return username;
            }

        }

        private long userid = -1;
        private string username = string.Empty;
    }
}